<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
      .box1{ 
        width: 400px;
        height: 400px;
        background-color: yellow;
      }

      .box2{
        width: 1200px;
        height: 1200px;
        background-image: url("12.jpg");
        background-repeat: no-repeat ;
        background-size: contain;
        background-position: right center;
      }
    </style>
</head>

<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>

</html>